<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@include file="/manage/user/check_login.jsp" %>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<meta name="viewport" content="width=device-width,initial-scale=0.2, minimum-scale=0.23, maximum-scale=1.0, user-scalable=no">
<link href="/images/logo.ico" rel="shortcut icon">
<title>选择审批用户</title>
<link type="text/css" href="/common/css/common.css" rel="stylesheet"/>
<script type="text/javascript" src="/common/js/common.js"></script>
<script type="text/javascript" src="/common/js/jquery.js"></script>
<script type="text/javascript">
	function sendValue(){
		var val=getRadioValue('selectUser');
		if(val){
			val=val.split('|');
			if(window.opener.document.getElementById("_userID"))window.opener.document.getElementById("_userID").value=val[0];
			if(window.opener.document.getElementById("_userName"))window.opener.document.getElementById("_userName").value=val[1];
			window.close();	
		}else{
			alert("您还没有选择用户！");
		}
	}
	$(document).ready(function(){
		$('#pageMain').fadeIn();
		initTrEvent();
	});
</script>
</head>
<body>
<div id="pageMain">
	<div style="padding:0 10px;">
    	<form action="/userAction!getByShList.chtml" method="post" name="userForm">
        	<s:hidden name="pageSize"/>
        	<div class="list_con">
                <div class="search_bg"></div>
                <div class="bor">
                    <div style="margin:5px 0 0 45px;height:28px;">
                        <table class="table_search">
                        <tr>
                            <td width="60"><b style="color:#003366;">搜索条件</b></td>
                            <td>　所在部门:</td><td><input type="text" name="u.userName" style="width:100px;"/></td>
                            <td>　用户名称:</td><td><input type="text" name="u.depart" style="width:100px;"/></td>
                            <td><input type="submit" id="saveBtn" class="btn2_47" value="查询"/></td>
                            <td><input type="button" id="resetBtn" class="btn2_47" value="关闭" onclick="window.close();"/></td>
                            <td><input type="button" id="saveBtn" class="btn3_74" value="确定选择" onclick="sendValue()"/></td>
                        </tr>
                    </table>
                    </div>
                </div>
            </div>
                <div style="float:left; width:100%; margin-top:16px;">
                    <table id="resultList" class="table_list">
                        <tr><th>选择</th><th>用户名</th><th>姓名</th><th>所属部门</th><th>职务</th><th width="76" class="bn">联系方式</th></tr>
                        <s:iterator value="userList" status="st">
                            <s:if test="#st.count%2==0">
                                <tr class="tow">
                            </s:if>
                            <s:else>
                                <tr class="one <s:if test="#st.count==1">bor_t</s:if>">
                            </s:else>
                                <td class="bor_l"><input type="radio" name="selectUser" value="${fn:escapeXml(id)}|${fn:escapeXml(userName)}"/></td><td>${fn:escapeXml(userName)}</td><td>${fn:escapeXml(name)}</td><td>${fn:escapeXml(depart)}</td><td>${fn:escapeXml(job)}</td><td  class="bor_c">${fn:escapeXml(linkman)}</td>
                            </tr>
                        </s:iterator>
                    </table>
                    <div class="page_con" style="text-align:center;">
                        <s:property value="pageHTML" escape="false"/>
                    </div>
                </div>
        </form>
    </div>
</div>
</body>
</html>
